package cn.com.nes.common.em.platform;

import cn.com.nes.site.config.CustomConfigurationProperties;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

/**
 * 消息中心接口枚举
 */
@Getter
@Slf4j
public enum MessageMethodEnum {

    SEND_MESSAGE("/v1/pushMessage/pushMessage", "发送消息"),
    ;

    private final String method;

    private final String remark;

    MessageMethodEnum(String method, String remark) {
        this.method = method;
        this.remark = remark;
    }

    /**
     * 获取完整接口URL
     */
    public String getUrl() {
        String URL = CustomConfigurationProperties.getNesMessageUrl() + "/" + PlatformEnum._message.getServerContext() + method;
        log.info("URL:{}", URL);
        return URL;
    }

}
